package io.github.chutian0610.sqlparser.dialect

import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe

class DialectTest : StringSpec({
    "dialectIs(MYSQL(),MYSQL::class) should return true" {
        dialectIs(MySQL(), MySQL::class) shouldBe true
    }
    "dialectIs(MYSQL(),HIVE::class) should return false" {
        dialectIs(MySQL(), Hive::class) shouldBe false
    }
    "dialectIn(MYSQL(),HIVE::class,MYSQL::class) should return true" {
        dialectIn(MySQL(), Hive::class, MySQL::class) shouldBe true
    }
    "dialectIn(MYSQL(),HIVE::class,GenericDialect::class) should return false" {
        dialectIn(MySQL(), Hive::class, GenericDialect::class) shouldBe false
    }
})
